{% extends 'ui/base.html' %}
{% load bob icons staticfiles %}

{% block scripts %}
    <!-- from now, include parent jquery version for normal use. !-->
    {{ block.super }}

    <script type="text/javascript" charset="utf-8" src="{% static 'bootstrap/js/bootstrap-dropdown.js' %}"></script>
    <script type="text/javascript" charset="utf-8" src="{% static 'bootstrap-datepicker.js' %}"></script>

    <script src="{% static 'cmdb/common.js' %}"></script>
    <script src="{% static 'jquery.flot.js' %}"></script>

    <!-- additional scripts !-->
    <script src="{% static 'jit/jit.js' %}"></script>
{% endblock %}

{% block extra_headers %}
    <!-- This special resources are required for django filtered multiselect widget !-->
    <!-- They must load before rendering admin widgets !-->
    <!-- first, load jquery. for django admin widgets use. !-->
    <script src="{% static 'jquery-1.7.2.min.js' %}"></script>
    <!-- isolate jquery moving to own 'namespace' !-->
    <script type="text/javascript" src="/static/admin/js/jquery.init.js"></script>

    <!-- now load django admin widgets javascripts !-->
    <script type="text/javascript" src="/static/admin/js/core.js"></script>
    <script type="text/javascript" src="/static/admin/js/getElementsBySelector.js"></script>
    <script type="text/javascript" src="/static/admin/js/actions.js"></script>
    <script type="text/javascript" src="/static/admin/js/SelectBox.js"></script>
    <script type="text/javascript" src="/static/admin/js/SelectFilter2.js"></script>
    <script type="text/javascript" src="{% static 'filtered_widget/jsi18n.js' %}"></script>

     <!-- django admin wigets css !-->
    <link rel="stylesheet" type="text/css" href="{% static 'filtered_widget/style.css' %}" />
{% endblock %}

{% block breadcrumbs %}
{% if breadcrumbs %}
    <ul class="breadcrumb">
        {% for segment in breadcrumbs %}
        <li>
        <a href="/cmdb/search?parent={{ segment.id }}"> {{ segment.name }}</a> &gt;
        </li>
        {% endfor %}
    </ul>
{% endif %}
{% endblock %}

{% block contentarea %}
        {% block content %}
        {% endblock %}
{% endblock %}

{% block titlesubsection %}
    {{ subsection }}{% if subsection %} - {% endif %}
{% endblock %}
